package cate.common.table.farm.endless;

import cate.common.table.ESheet;

/** 无尽轮回排行榜奖励 */
public class EndlessRankRewardSheet extends ESheet<EndlessRankRewardRow> {

    @Override
    public String getSheetName() {
        return "排行榜奖励";
    }

    public String getReward(int rankIndex) {
        for (EndlessRankRewardRow tpl : list) {
            int rankNo = rankIndex + 1;
            if (rankNo >= tpl.begin && rankNo <= tpl.end) {
                return tpl.rewardStr;
            }
        }
        return null;
    }
}
